﻿namespace HZY.Framework.DependencyInjection.Test;

public class UserService : BaseService<User>
{
    public string UserName { get; set; }

    public UserService(IServiceProvider serviceProvider) : base(serviceProvider)
    {

    }

    public string GetUserName()
    {
        var a = Reposiroty?.GetAge();
        return this.UserName;
    }

}

public interface ITest : ITransientDependency
{
    string GetUserName();
}

public class Test : ITest
{
    public string GetUserName()
    {
        return "Test";
    }
}

public class Test2 : ITest
{
    public string GetUserName()
    {
        return "Test2";
    }
}
